import http from '@/utils/request'

//  获取授权码
export const getAuthorization = (data, config) => {
	return http.get(`/authorization/authorizationcontroller/getAuthorization`, data, config)
}
export const setAuthorization = (data, config) => {
  return http.post(`/authorization/authorizationcontroller/authorization?authorization=${encodeURIComponent(data.authorization)}`, data, config)
}
export const getMachineCode = (data, config) => {
  return http.post(`/authorization/authorizationcontroller/getMachineCode`, data, config)
}

